package com.ruoyi.common.utils.file;

public class imageUtils {
    public static void main(String[] args) {
//        WfModelVo wfModelVo = modelService.getModel(modelId);
//        BpmnModel bpmnModel = ModelUtils.getBpmnModel(wfModelVo.getBpmnXml());
//        InputStream is = flowProcessDiagramGenerator.generateDiagram(bpmnModel);
//        try {
//            response.setHeader("Content-Type", "image/png");
//            byte[] b = new byte[1024];
//            int len;
//            while ((len = is.read(b, 0, 1024)) != -1) {
//                response.getOutputStream().write(b, 0, len);
//            }
//        } catch (Exception e) {
//            LOGGER.error("ApiFlowableModelResource-loadPngByModelId:" + e);
//            e.printStackTrace();
//        }
    }
}
